// swarming into the void ...
this.connect('notify::mapped', () => {
if (!this.mapped)
- this._cancelAnimation();
+ this._resetAnimationActors();
});
this.connect('actor-added', this._childAdded.bind(this));
return this._getVisibleChildren();
}
- _cancelAnimation() {
- this._clonesAnimating.forEach(clone => clone.destroy());
- this._clonesAnimating = [];
- }
-
- _animationDone() {
+ _resetAnimationActors() {
this._clonesAnimating.forEach(clone => {
clone.source.reactive = true;
clone.source.opacity = 255;
clone.destroy();
});
this._clonesAnimating = [];
+ }
+
+ _animationDone() {
+ this._resetAnimationActors();
this.emit('animation-done');
}
throw new GObject.NotImplementedError("Pulse animation only implements " +
"'in' animation direction");
- this._cancelAnimation();
+ this._resetAnimationActors();
let actors = this._getChildrenToAnimate();
if (actors.length == 0) {
}
animateSpring(animationDirection, sourceActor) {
- this._cancelAnimation();
+ this._resetAnimationActors();
let actors = this._getChildrenToAnimate();
if (actors.length == 0) {